<script>
  import $ from 'dfish-widget'
  import Method from '../Method.vue'

  export default {
    mixins: [Method],
    data() {
      return {
        name: '$.numAdd(n1, n2, ...N)',
        remark: '获取浮点数字相加的和。',
        attrs: [{
          name: 'n1, n2, ...N',
          remark: '数字',
          type: 'Number',
        }],
        examples: [{
          remark: '两个小数相加',
          code: `
            let n = $.numAdd(0.1, 0.2); // 返回 0.3
            `
        }]
      }
    }
  }
</script>
